<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>订单确认</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <link rel="stylesheet" href="../../../css/wx/mui.min.css">
    <link rel="stylesheet" href="../../../css/wx/app.css">
    <link rel="stylesheet" href="../../../css/wx/style.css"/>
    <script type="text/javascript">
        var pageConfig = {
            jss: ["app/gwat310/gwat310"]
        };
    </script>
    <script data-main="../../../js/wx/public/config" src="../../../js/require.js"></script>
    <style>

        .mui-control-content {
            min-height: -webkit-fill-available;
        }

        .mui-bar-nav ~ .mui-content .mui-pull-top-pocket {
            top: 0;
        }

        .mui-table-view-cell:after {
            height: 0;
        }

        .mui-card {
            margin-bottom: 0;
        }

        .footBtn .mui-checkbox {
            background: #fff;
            line-height: 50px;
        }

        .footBtn .mui-checkbox input {
            top: -3px;
            left: 10px !important;
        }

        .footBtn button {
            font-size: 15px;
        }

        .footBtn.flexl .mui-checkbox.mui-left label {
            padding-left: 36px;
        }

        .mui-slider .mui-slider-group {
            height: -webkit-fill-available;
        }

        .mui-fullscreen .mui-segmented-control ~ .mui-slider-group {
            top: 65px;
        }

        .wf-slider-bottom {
            top: 58px;
            bottom: 0;
        }
        .p10{
            padding: 10px 0 1px !important;
        }

    </style>

</head>

<body>
<!--搜索-->
<div class="mui-content">
    <div id="searchDiv" class="mui-input-row searchBox">
        <form action="javascript:app.returnFalse();">
            <i class="mui-icon mui-icon-search"></i>
            <input @search="toSearch" type="search" class="mui-input-clear" placeholder="品号|品名|客户名称"
                   v-model.trim="keyword">
        </form>
    </div>
</div>
<!--列表-->
<div id="slider" class="mui-slider responseSlider xdcx wf-slider-bottom">
    <div id="sliderSegmentedControl"
         class="mui-slider-indicator mui-segmented-control mui-segmented-control-inverted shadow p10">
        <a class="mui-control-item" href="#item1mobile">
            未确认
        </a>
        <a class="mui-control-item" href="#item2mobile">
            已确认
        </a>
        <a class="mui-control-item" href="#item3mobile">
            全部
        </a>
    </div>
    <div id="sliderProgressBar" class="mui-slider-progress-bar mui-col-xs-4"></div>
    <div class="mui-slider-group">
        <div id="item1mobile" class="mui-slider-item mui-control-content mui-active">
            <div id="scroll1" class="mui-scroll-wrapper">
                <div class="mui-scroll">
                    <gwat310-listitem :model="items"></gwat310-listitem>
                </div>
            </div>
        </div>
        <div id="item2mobile" class="mui-slider-item mui-control-content">
            <div id="scroll2" class="mui-scroll-wrapper">
                <div class="mui-scroll">
                    <gwat310-listitem :model="items"></gwat310-listitem>
                </div>
            </div>
        </div>
        <div id="item3mobile" class="mui-slider-item mui-control-content">
            <div id="scroll" class="mui-scroll-wrapper">
                <div class="mui-scroll">
                    <gwat310-listitem :model="items"></gwat310-listitem>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="footBtn flexl shadow2" id="footer" v-show="index != 2">
    <div class="mui-checkbox mui-left" style="flex: 1;">
        <label>全选</label>
        <input v-model="allCheck" type="checkbox" @tap.stop="checkall" style="top:17px;">
    </div>
    <button type="button" class="wf-pulic-bg edit" style="width: 50%;" @tap.stop="reconfirmlist" v-show="index == 1">
        取消确认
    </button>
    <button type="button" class="wf-second-bg edit" style="width: 30%;" @tap.stop="deletelist" v-show="index == 0">作废
    </button>
</div>
<script id="item-template" type="text/x-template">
    <ul class="mui-table-view">
        <li class="mui-table-view-cell" v-for="(item,index) in model">
            <div class="mui-card">
                <div class="mui-card-header">
                    <div class="mui-checkbox mui-left" style="flex: 1 1 0%;">
                    <label>{{item.GWAKL004}}（{{item.GWCS008}}）</label>
                        <input type="checkbox" style="top:0;" v-model="item.checked">
                    </div>
                    <p><i class="iconfont icon icon-0011 wf-font-color"></i>{{item.GWCSDOCDATE|dateFmt}}</p>
                </div>
                <div class="mui-card-content">
                    <div class="mui-card-content-inner slider mui-scroll-wrapper mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
                        <ul class="mui-scroll">
                            <li class="mui-control-item" v-for="good in item.list">
                                <a href="#"><img :src="good.GWAM015 | goodsImgsUtils"></a>
                                <div class="filer">
                                    <p>￥{{good.GWCS004}}<em>/</em><span>{{good.GWCS003}}</span></p>
                                    <p class="wf-font-color"><i class="iconfont icon icon-0012"></i>{{good.GWCS005}}</p>
                                </div>
                            </li>
                        </ul>
                    </div>
                    <div class="flex-just" style="padding: 5px 15px"><p>单号：{{item.GWCSDOCNO}}</p>
                        <p class="wf-font-color">¥{{item.GWCSAMOUNT}}</p></div>
                </div>
                <div class="mui-card-footer" :class="statueImg(item)">
                    <p>
                        <a href="#" class="wf-font-color wf-define-border-color" @tap.stop="reconfirm(item)"
                           v-show="statueY(item)">取消确认</a>
                        <a href="#" class="wf-sfont-color wf-sborder-color" @tap.stop="confirm(item)"
                           v-show="statueN(item)">确认</a>
                        <a href="#" class="wf-font-color wf-border-color" @tap.stop="del(item)" v-show="statueN(item)">作废</a>
                    </p>
                </div>
            </div>
        </li>
    </ul>
</script>

</body>

</html>